package com.supermarket.manage.provider.api.ucenter;

import com.supermarket.manage.common.dto.PageBean;
import com.supermarket.manage.common.dto.ucenter.request.AddUserParams;
import com.supermarket.manage.common.dto.ucenter.request.UserAddRoleParams;
import com.supermarket.manage.common.dto.ucenter.request.UserPageParams;
import com.supermarket.manage.common.pojo.MyUser;

import java.util.List;

/**
 * 用户管理接口
 *
 * @author Faxon
 * @version 1.0
 * @date 2020-02-28 18:17
 **/
public interface UserManageService {

    /**
     * 获取用户列表
     *
     * @param params
     * @return
     */
    PageBean<MyUser> getUserPageList(UserPageParams params);

    /**
     * 删除用户
     *
     * @param userId
     * @param buyerId
     * @return
     */
    Boolean deleteUserById(Long userId, String buyerId);

    /**
     * 添加用户
     *
     * @param params
     * @return
     */
    Boolean addUser(AddUserParams params);

    /**
     * 分配角色给用户
     *
     * @param userAddRoleParams
     * @return
     */
    Boolean assignRoleToUser(UserAddRoleParams userAddRoleParams);

    /**
     * 获取用户列表
     *
     * @param params
     * @return
     */
    List<MyUser> getUserList(UserPageParams params);
}
